// app.js
import utils from "./utils/utils"
import http from "./utils/http"
App({
  globalData: {},
  getToken() {
    this.token = wx.getStorageSync('token')
  },
  setToken(key,token){
    this[key] = token
    wx.setStorageSync(key, token)
  },
  removeToken(key){
    wx.removeStorageSync(key)
  },
  onLaunch(){
    this.getToken()
  }
  
})
